module TerminalKeynote
  class Block
    attr_accessor :lines

    def initialize(options={})
      @lines =
        if options[:content]
          options[:content].lines.map { |str| Line.new(string: str.chomp) }
        else
          options[:lines]
        end
      @lines ||= []
    end

    def ==(other)
      lines == other.lines
    end
  end
end
